Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: inopportune scaling events would lose some status fields #3060

Merged
merged 1 commit into from
Oct 4, 2023

Conversation

jessesuen
Copy link
Member

@jessesuen jessesuen commented Sep 26, 2023

Resolves #2931

During a scaling event, we will now only perform scaling against our ReplicaSets, and only reconcile:

  • status.availableReplicas
  • status.HPAReplicas

This fixes a bug where we would lose some information in status (because we did not perform the normal full logic of reconciliation).

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

@sonarcloud
Copy link

sonarcloud bot commented Sep 26, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
7.8% 7.8% Duplication

@jessesuen jessesuen changed the title fix: inopportune scaling events would result in loss of data fix: inopportune scaling events would result in loss of status Sep 26, 2023
@jessesuen jessesuen changed the title fix: inopportune scaling events would result in loss of status fix: inopportune scaling events would lose some status fields Sep 26, 2023
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (f650a1f) 81.75% compared to head (90808b8) 81.74%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3060      +/-   ##
==========================================
- Coverage   81.75%   81.74%   -0.01%     
==========================================
  Files         134      134              
  Lines       20395    20407      +12     
==========================================
+ Hits        16674    16682       +8     
- Misses       2865     2868       +3     
- Partials      856      857       +1     
Files Coverage Δ
rollout/sync.go 79.92% <64.28%> (-0.22%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link
Contributor

Go Published Test Results

2 045 tests   2 045 ✔️  2m 40s ⏱️
   118 suites         0 💤
       1 files           0

Results for commit 90808b8.

@github-actions
Copy link
Contributor

E2E Tests Published Test Results

    4 files      4 suites   3h 34m 33s ⏱️
102 tests   89 ✔️   6 💤   7
418 runs  384 ✔️ 24 💤 10

For more details on these failures, see this check.

Results for commit 90808b8.

@zachaller zachaller merged commit 0d93b97 into argoproj:master Oct 4, 2023
26 of 27 checks passed
@jessesuen jessesuen deleted the fix/scaling-event-stuck branch October 7, 2023 00:02
phclark pushed a commit to phclark/argo-rollouts that referenced this pull request Oct 13, 2023
…oj#3060)

fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
Signed-off-by: Philip Clark <[email protected]>
phclark pushed a commit to phclark/argo-rollouts that referenced this pull request Oct 15, 2023
…oj#3060)

fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
Signed-off-by: Philip Clark <[email protected]>
phclark pushed a commit to phclark/argo-rollouts that referenced this pull request Oct 15, 2023
…oj#3060)

fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
Signed-off-by: Philip Clark <[email protected]>
zachaller pushed a commit that referenced this pull request Oct 30, 2023
fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
zachaller pushed a commit that referenced this pull request Oct 30, 2023
fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
zachaller pushed a commit that referenced this pull request Oct 30, 2023
fix: inopportune scaling events would result in loss of data

Signed-off-by: Jesse Suen <[email protected]>
@zachaller zachaller added the cherry-pick-completed Used once we have cherry picked the PR to all requested releases label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

blue-green stuck indefinitely during a scaling event with prePromotionAnalysis & previewReplicaCount
2 participants